package com.sc.nft.entity.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sc.nft.dto.IdRequest;
import com.sc.nft.enums.MallGoodsLabelEnums;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class MallGoodsLabelPageVO extends IdRequest {
    @ApiModelProperty(value = "权重")
    private Integer sort;

    @ApiModelProperty(value = "标签类型, NEW_LABEL,新品标签,ACTIVITY_LABEL,活动标签")
    private MallGoodsLabelEnums labelType;

    @ApiModelProperty(value = "标签名称")
    private String labelName;

    @ApiModelProperty(value = "标签图片")
    private String labelImage;

    @ApiModelProperty(value = "启用状态")
    private Boolean status;

    @ApiModelProperty(value = "商品数量")
    private Integer itemNum;

    @ApiModelProperty("创建时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    protected Date createTime;

    @ApiModelProperty(value = "持续时间")
    private Integer duration;
}
